﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;

namespace BO
{
    public class Meetings
    {
        public VO.Meetings objVO;
        public VO.Meeting_Imagens objVOImagens;
        DA.Meetings objDA;

        public Meetings()
        {
            objDA = new DA.Meetings();
            objVO = new VO.Meetings();
            objVOImagens = new VO.Meeting_Imagens();
        }

        public void Salvar()
        {
            objDA.objVO = objVO;
            objDA.Salvar();
        }

        public void Atualizar()
        {
            objDA.objVO = objVO;
            objDA.Atualizar();
        }

        public void Excluir()
        {
            objDA.objVO = objVO;
            objDA.Excluir();
        }

        public DataSet getTodosRegistros()
        {
            return objDA.getTodosRegistros();
        }

        public DataSet getRegistroById()
        {
            objDA.objVO = objVO;
            return objDA.getRegistroById();
        }

        public DataSet getImgByMeeting()
        {
            objDA.objVOImagens = objVOImagens;
            return objDA.getImgByMeeting();
        }

        public void SalvaImg()
        {
            objDA.objVOImagens = objVOImagens;
            objDA.SalvaImg();
        }

        public void DeletaImg()
        {
            objDA.objVOImagens = objVOImagens;
            objDA.DeletaImg();
        }

        public DataSet getRegistroMeeting()
        {
            objDA.objVO = objVO;
            return objDA.getRegistroMeeting();
        }

        public DataSet getRegistroMeetingImg()
        {
            objDA.objVOImagens = objVOImagens;
            return objDA.getRegistroMeetingImg();
        }

        public DataSet getTodosRegistroMeetingsByUnidade()
        {
            objDA.objVO = objVO;
            return objDA.getTodosRegistroMeetingsByUnidade();
        }

    }
}